﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.KDNiao
{
    /// <summary>
    /// 物流跟踪的参数实体
    /// </summary>
    public class TrancesParam
    {
        /// <summary>
        /// 订单编号    
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 快递公司编码
        /// </summary>
        public string ShipperCode { get; set; }

        /// <summary>
        /// 物流单号
        /// </summary>
        public string LogisticCode { get; set; }
    }

    /// <summary>
    /// 物流跟踪的返回实体
    /// </summary>
    public class TracesModel
    {
        /// <summary>
        /// 商户ID
        /// </summary>
        public string EBusinessID { get; set; }
        /// <summary>
        ///订单编号
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 快递公司编码
        /// </summary>
        public string ShipperCode { get; set; }
        /// <summary>
        /// 物流运单号
        /// </summary>
        public string LogisticCode { get; set; }
        /// <summary>
        /// 状态(成功、失败)
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 失败原因
        /// </summary>
        public string Reason { get; set; }
        /// <summary>
        /// 物理进度
        /// </summary>
        public List<TracesItem> Traces { get; set; }
    }

    /// <summary>
    /// 物流跟踪
    /// </summary>
    public class TracesItem
    {
        /// <summary>
        /// 时间
        /// </summary>
        public string AcceptTime { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string AcceptStation { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

    /// <summary>
    /// 快递公司
    /// </summary>
    public class Shipper
    {
        /// <summary>
        /// 快递编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 快递公司
        /// </summary>
        public string Name { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
       
        public Shipper(string Code,string Name)
        {
            this.Code = Code;
            this.Name = Name;
        }
        public Shipper(string Code, string Name,string Remark)
        {
            this.Code = Code;
            this.Name = Name;
            this.Remark = Remark;
        }
    }
}